Fix empty array edge cases in nlinfit - #485
Conversation
|
Matches MATLAB, which errors in all these cases. Remove the |
10f58ac to
9adada0
Compare
|
updated @pr0m1th3as |
|
Please remove the y = [2.1; 3.9; 6.2; 7.8; 10.1];
nlinfit ([], y, @(b, x) b(1) * (1:5)', 1)
nlinfit ({1:5}, y, @(b, x) b(1) * x{1}(:), 1)MATLAB has no such check either; the size check on the output of |
|
updated @pr0m1th3as |
|
|
|
fixing it, behaviour changed when i modified the if condition |
|
can you review now @pr0m1th3as thank you. |
|
Thanks for your reviews, @pr0m1th3as . |
No description provided.